package com.syaccp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName t_withdrawal_details
 */
@TableName(value ="t_withdrawal_details")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TWithdrawalDetails implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     *  提现金额
     */
    @TableField(value = "money")
    private Integer money;

    /**
     * 手续费
     */
    @TableField(value = "service_money")
    private Integer serviceMoney;

    /**
     * 提现时间
     */
    @TableField(value = "withdraw_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date withdrawTime;

    /**
     * 申请人id
     */
    @TableField(value = "customer_id")
    private Integer customerId;

    /**
     * 申请人名字
     */
    @TableField(value = "customer_name")
    private String customerName;

    /**
     * 申请人图片
     */
    @TableField(value = "customer_picture")
    private String customerPicture;

    /**
     * 公司id
     */
    @TableField(value = "org_id")
    private Integer orgId;

    /**
     * 公司名称
     */
    @TableField(value = "org_name")
    private String orgName;

    /**
     * 员工id
     */
    @TableField(value = "author_id")
    private Integer authorId;

    /**
     * 审核人(员工)
     */
    @TableField(value = "author_name")
    private String authorName;

    /**
     * 银行id
     */
    @TableField(value = "bank_id")
    private Integer bankId;

    /**
     * 银行名称(从字典中查)
     */
    @TableField(value = "bank_name")
    private String bankName;

    /**
     * 银行卡号
     */
    @TableField(value = "bank_account")
    private String bankAccount;

    /**
     * 开户人名称
     */
    @TableField(value = "account_name")
    private String accountName;

    /**
     * 开户人手机号
     */
    @TableField(value = "account_phone")
    private String accountPhone;

    /**
     * 财物状态（0已打款 1待审核）
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /*
     * 用户id  对应  customerId
     * */
    private int customerNo;

    /*
     * 公司名称  对应  sys_dept 中的字段
     * */
    private String customerCompany;

    /*
     * 加减的值
     * */
    private int number;

/*
    */
/**
     * 分页
     *//*

    @TableField(exist = false)
    private Integer index;
 /**


    /**
     * 全部
     */
    @TableField(exist = false)
    private Integer selectAll;

    /**
     * 已打款
     */
    @TableField(exist = false)
    private Integer  RemittedMoney;
    /**.
     * 待审核
     */
    @TableField(exist = false)
    private Integer  WaitingAudit;
    /**
     * 已拒绝
     */
    @TableField(exist = false)
    private Integer  Declined;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}